//
//  contextualView.h
//  SmartHome
//
//  Created by 赵嘉诚 on 15/3/15.
//  Copyright (c) 2015年 赵嘉诚. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "defineHead.h"
#import "myCollectionViewCell.h"

@protocol sceneDelegate <NSObject>

- (void)showSceneTitle:(NSString *)title;
- (void)showSceneLeftView;
- (void)hideSceneLeftView;
- (void)showSceneView;
- (void)hideTabView;
- (void)showTabView;
- (void)showSceneRightButton:(NSUInteger)type;
- (void)hideSceneRightButton;
- (void)setIsShowContentView:(BOOL)b;

@end

@interface contextualView : UIView

@property (nonatomic, weak) id<sceneDelegate> sceneDelagate;
@property (nonatomic, copy) void (^sendMessage)(NSString *);

- (instancetype)initWithFrame:(CGRect)frame andDic:(NSDictionary *)dic;
- (void)hideNowView;
- (void)updateData;
- (void)addFundation;
- (void)showSceneContentView;

@end
